package trabalho.das.fxml.views;

import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.layout.BorderPane;
import javafx.scene.web.WebView;

/**
 * Trabalho DAS - 2014/2015
 * @author a21210380, a21190325, a21210392
 */
public class SobreView extends BorderPane {
    
    public SobreView() {
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/resources/fxml/Sobre.fxml"));
        fxmlLoader.setRoot(this);
        fxmlLoader.setController(this);
        
        try {
            fxmlLoader.load();
            
            ((WebView)getCenter()).getEngine().load(getClass().getResource("/resources/html/sobre.html").toExternalForm());
        } catch (IOException exception) {
            throw new RuntimeException(exception);
        }
    }
}
